package com.dtech.submp.controller;



import com.dtech.submp.service.UsersService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@CrossOrigin // 跨域请求
public class BaseController {


	protected final Logger logger = LoggerFactory.getLogger(this.getClass());
	@Autowired
	private UsersService userService;

	@RequestMapping(value = "login/toLogin", method = RequestMethod.GET)
	public String toLogin() {
		return "demo/index";
	}

}